package com.bsoft.advance.client.common;

import com.bsoft.advance.core.common.RpcRequest;
import com.bsoft.advance.core.protocol.MessageProtocol;
import com.bsoft.advance.core.serialization.SerializationType;
import lombok.Builder;
import lombok.Data;

import java.net.InetSocketAddress;

/**
 * 请求元数据
 */
@Data
@Builder
public class RequestMetadata {
    /**
     * rpc请求协议
     */
    private MessageProtocol<RpcRequest> protocol;

    /**
     * rpc远程地址
     */
    private InetSocketAddress socketAddress;

    /**
     * 请求超时时间
     */
    private Long timeout;

}
